<?php
require_once("conndb.php");
$link = connect();
$xh = $_REQUEST['xh'];
$xm = $_REQUEST['xm'];
$xb = $_REQUEST['xb'];
$bjid = $_REQUEST['bjid'];
//插入2条数据
$sql = "insert into student 
values(null,".$xh.",
'".$xm."','".$xb."',".$bjid.")";
$result = mysqli_query($link,
      $sql);

header("location:index.php");
?>